package com.hongkl.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Calendar;

/***
 * config包下面的类都标识是一个配置类
 */
@Configuration   // 声明这个类是一个配置类
public class MyConfig {


    @Bean
    public Calendar calendar(){
        Calendar instance = Calendar.getInstance();
        return instance;
    }


}
